package com.graduation.mybatis.service;

import com.graduation.mybatis.bean.News;
import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.mybatis.bean.NewsDTO;
import com.graduation.mybatis.bean.NewsListDTO;

import java.util.List;

/**
* @author 23726
* @description 针对表【news】的数据库操作Service
* @createDate 2025-05-01 16:18:02
*/
public interface NewsService extends IService<News> {

    NewsDTO getNewsDetail(Long id, Long userId);

    List<NewsListDTO> getNewsList(int page, int pageSize);
}
